Benjamin Otte [Wed, 27 Mar 2019 23:34:23 +0000 (00:34 +0100)]
reftests: Delete removed tests from testdata
Benjamin Otte [Wed, 27 Mar 2019 23:27:51 +0000 (00:27 +0100)]
reftests: Fix css-currentcolor-alpha.ui test
The test did not draw anything, which fails now.
Benjamin Otte [Wed, 27 Mar 2019 23:24:44 +0000 (00:24 +0100)]
reftests: Fix css-match-class test
- Replace GtkImage::pixbuf with GtkImage::paintable
- Use a GtkPicture so the sizing is correct
Benjamin Otte [Wed, 27 Mar 2019 04:19:42 +0000 (05:19 +0100)]
reftests: Fix background-size-zero test
We were drawing nothing, causing a timeout.
Benjamin Otte [Wed, 27 Mar 2019 04:02:22 +0000 (05:02 +0100)]
reftests: Fix nth-child test
Box children no longer have a "position" child property.
Benjamin Otte [Wed, 27 Mar 2019 03:53:56 +0000 (04:53 +0100)]
reftests: Fix treeview-fixed-height test
Convert -gtk-gradient() to linear-gradient in the CSS.
Benjamin Otte [Wed, 27 Mar 2019 03:52:59 +0000 (04:52 +0100)]
reftests: Actually build a module
Reftests are expecting a module called libreftest.so, so don't build a
static libgtkreftest.a but what they expect.
Benjamin Otte [Wed, 27 Mar 2019 03:36:15 +0000 (04:36 +0100)]
reftests: Fix actionbar test
Boxes have no pack-type anymore.
Benjamin Otte [Wed, 27 Mar 2019 02:55:18 +0000 (03:55 +0100)]
reftests: Fix window-height-for-width test
The dialog's vbox internal child is now called content_area
Benjamin Otte [Wed, 27 Mar 2019 02:46:03 +0000 (03:46 +0100)]
reftests: Fix grid-spacing1 test
Benjamin Otte [Wed, 27 Mar 2019 02:41:13 +0000 (03:41 +0100)]
reftests: Fix unresolvable.ui test
- Make sure we draw something
- Don't use -gtk-gradient() but linear-gradient instead
Benjamin Otte [Wed, 27 Mar 2019 02:41:03 +0000 (03:41 +0100)]
widgetpaintable: Don't emit signals on dispose
Benjamin Otte [Wed, 27 Mar 2019 02:19:05 +0000 (03:19 +0100)]
reftest: Be more careful about snapshotting
Instead of waiting for the first invalidate-contents signal, wait until
we get a render node. This will break spectacularly for reftests not
drawing anything at all, but we just hope that won't happen.
Benjamin Otte [Wed, 27 Mar 2019 01:59:13 +0000 (02:59 +0100)]
reftests: Make meson run every test separately
This way, we don't get an abort once the first test gets a warning.
We also can use meson test to run individual tests.
Unfortunately, only ~60% of tests pass.
Benjamin Otte [Tue, 26 Mar 2019 16:35:26 +0000 (17:35 +0100)]
testsuite: Make reftests work again
Well, the testrunner works again, the tests don't all succeed.
So exclude them from CI.
Benjamin Otte [Tue, 26 Mar 2019 16:09:19 +0000 (17:09 +0100)]
reftests: Remove image-recording-surface test
It's no longer possible to set surfaces on a GtkImage, so we don't need
to test that setting a recording surface works.
Chun-wei Fan [Fri, 29 Mar 2019 08:48:29 +0000 (16:48 +0800)]
gdk/win32/gdkdrag-win32.c: Include math.h
We need that for round().
Chun-wei Fan [Fri, 29 Mar 2019 08:47:31 +0000 (16:47 +0800)]
meson.build: Pull in fallback for PangoFT2 only when needed
On some systems PangoFT2 is optional, so we only use the fallback when
it is being required.
Matthias Clasen [Fri, 29 Mar 2019 00:51:23 +0000 (00:51 +0000)]
Merge branch 'adwaita-radii-fixes-master' into 'master'
Adwaita radii fixes master
See merge request GNOME/gtk!628
Matthias Clasen [Thu, 28 Mar 2019 23:28:05 +0000 (19:28 -0400)]
builder-tool: Don't strip the xml declaration
This is useful for interoperability with other tools.
Matthias Clasen [Thu, 28 Mar 2019 22:55:36 +0000 (18:55 -0400)]
file chooser entry: Fix a crash
The ::focus-out signal signature has changed. Adapt.
Matthias Clasen [Thu, 28 Mar 2019 22:27:42 +0000 (18:27 -0400)]
popover menu: Fix a parameter name mismatch
Matthias Clasen [Thu, 28 Mar 2019 22:27:25 +0000 (18:27 -0400)]
overlay: Remove no-longer-existing api from header
Matthias Clasen [Thu, 28 Mar 2019 22:27:08 +0000 (18:27 -0400)]
gtk: Some documentation cleanups
Matthias Clasen [Thu, 28 Mar 2019 22:08:15 +0000 (18:08 -0400)]
gsk: Fix up docs a bit
Some apis that were either removed or have never
existed were listed for the docs.
Matthias Clasen [Thu, 28 Mar 2019 22:06:00 +0000 (18:06 -0400)]
gsk: Add GskRoundedRect to the docs
Christoph Reiter [Thu, 28 Mar 2019 21:47:18 +0000 (22:47 +0100)]
CI: install meson 0.50
Matthias Clasen [Thu, 28 Mar 2019 21:35:50 +0000 (17:35 -0400)]
Bump meson req to 0.50
meson told me to.
Matthias Clasen [Thu, 28 Mar 2019 21:07:38 +0000 (21:07 +0000)]
Merge branch 'overlay-layout' into 'master'
overlay: Use a layout manager
See merge request GNOME/gtk!677
Matthias Clasen [Thu, 28 Mar 2019 20:35:55 +0000 (16:35 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Thu, 28 Mar 2019 16:37:45 +0000 (12:37 -0400)]
builder-tool: Small refactoring
Introduce a PropKind enum, since the collection of
booleans is getting out of hands.
Matthias Clasen [Thu, 28 Mar 2019 16:21:52 +0000 (12:21 -0400)]
builder-tool: Convert overlay child properties
Matthias Clasen [Thu, 28 Mar 2019 03:47:32 +0000 (23:47 -0400)]
overlay: Use a layout manager
This lets us get rid of the child properties,
by converting them to layout properties.
Piotr Drąg [Thu, 28 Mar 2019 17:58:56 +0000 (18:58 +0100)]
Update POTFILES.in
Matthias Clasen [Thu, 28 Mar 2019 17:41:33 +0000 (17:41 +0000)]
Merge branch 'layout-child-type' into 'master'
Connect LayoutManager to LayoutChild
See merge request GNOME/gtk!678
Emmanuele Bassi [Thu, 28 Mar 2019 17:22:02 +0000 (17:22 +0000)]
Do not leak unapplied layout properties
If the layout manager does not have a GtkLayoutChild, or if we cannot
apply layout properties, we should free them instead of leaking them.
Emmanuele Bassi [Thu, 28 Mar 2019 17:16:57 +0000 (17:16 +0000)]
Add missing handler for <layout> elements in UI files
The layout properties sub-parser needs to handle the parent tag.
Emmanuele Bassi [Thu, 28 Mar 2019 16:58:00 +0000 (16:58 +0000)]
Connect LayoutManager to LayoutChild
If we want to inspect the type of layout properties exposed by a
GtkLayoutManager, we need a way to connect the layout manager type to
the GtkLayoutChild type it creates. In order to do so, we can set the
GtkLayoutChild type on a field of the GtkLayoutManagerClass structure.
Storing the GtkLayoutChild type on the class structure of the layout
manager also allows us to implement a default create_layout_child()
virtual function.
Emmanuele Bassi [Thu, 28 Mar 2019 12:16:53 +0000 (12:16 +0000)]
Add release info to our demo apps
The appstream-util check performed by Flatpak on recent GNOME SDKs has
become more stringent, and now it requires a <release> tag in the
AppData XML file. If we don't have it, the Flatpak bundles of gtk-demo
and gtk-widget-factory will fail on our CI infrastructure.
Emmanuele Bassi [Thu, 28 Mar 2019 11:47:46 +0000 (11:47 +0000)]
Document how to define layout manager properties
Matthias Clasen [Thu, 28 Mar 2019 02:48:03 +0000 (02:48 +0000)]
Merge branch 'gbsneto/install-header' into 'master'
build: Install gtkboxlayout.h
See merge request GNOME/gtk!676
Georges Basile Stavracas Neto [Thu, 28 Mar 2019 02:25:22 +0000 (23:25 -0300)]
boxlayout: Notify orientation changes
This was missing from the initial implementation, and
breaks the tests.
Matthias Clasen [Thu, 28 Mar 2019 02:04:42 +0000 (02:04 +0000)]
Merge branch 'child-properties' into 'master'
Remove some more child properties
See merge request GNOME/gtk!675
Georges Basile Stavracas Neto [Thu, 28 Mar 2019 01:55:07 +0000 (22:55 -0300)]
build: Install gtkboxlayout.h
This is included by gtk.h, and thus required to build.
Matthias Clasen [Thu, 28 Mar 2019 01:28:16 +0000 (21:28 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Thu, 28 Mar 2019 01:23:56 +0000 (21:23 -0400)]
builder-tool: Rewrite paned child properties
Matthias Clasen [Thu, 28 Mar 2019 01:21:48 +0000 (21:21 -0400)]
paned: Replace the child properties
Replace the resize and shrink child properties
by resize-child1/2 and shrink-child1/2 properties.
Matthias Clasen [Thu, 28 Mar 2019 00:14:51 +0000 (00:14 +0000)]
Merge branch 'window-api-cleanup' into 'master'
GtkWindow api cleanup
See merge request GNOME/gtk!674
Matthias Clasen [Thu, 28 Mar 2019 00:03:59 +0000 (20:03 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Thu, 28 Mar 2019 00:03:34 +0000 (20:03 -0400)]
builder-tool: Rewrite toolbar child properties
Matthias Clasen [Thu, 28 Mar 2019 00:02:48 +0000 (20:02 -0400)]
toolbar: Remove the homogeneous and expand child properties
Replace these with GtkToolItem properties homogeneous
and expand-item.
Matthias Clasen [Wed, 27 Mar 2019 22:48:59 +0000 (18:48 -0400)]
win32: Drop set_role
One overlooked (non-)implementation of set_role.
Matthias Clasen [Wed, 27 Mar 2019 22:47:56 +0000 (18:47 -0400)]
win32: Add a missing include
We are using round() now, so include math.h.
Matthias Clasen [Wed, 27 Mar 2019 22:40:40 +0000 (18:40 -0400)]
Convert ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Wed, 27 Mar 2019 22:38:29 +0000 (18:38 -0400)]
builder-tool: Rewrite GtkPopoverMenu::submenu
Matthias Clasen [Wed, 27 Mar 2019 22:37:57 +0000 (18:37 -0400)]
popover menu: Drop the submenu child property
We are using the GtkWidget::name property instead.
Matthias Clasen [Wed, 27 Mar 2019 21:52:51 +0000 (17:52 -0400)]
popover menu: Add an api for adding submenus
This is a step towards removing the submenu
child property.
Matthias Clasen [Wed, 27 Mar 2019 21:15:26 +0000 (17:15 -0400)]
gdk: Drop gdk_surface_set_role
This is a very old X session management thing, and you
will be hard-pressed to find a session manager that can
make use of it, and even harder-pressed to find apps
using it to their advantage.
Matthias Clasen [Wed, 27 Mar 2019 21:14:33 +0000 (17:14 -0400)]
gdk: Stop implementing set_role
All but the X implementation of these were
empty anyway. And the X one is just setting
a property.
Matthias Clasen [Wed, 27 Mar 2019 21:03:45 +0000 (17:03 -0400)]
Remove GtkWindow::role
...and the setter/getter for it.
This is a very old X session management thing, and you
will be hard-pressed to find a session manager that can
make use of it, and even harder-pressed to find apps
using it to their advantage.
Matthias Clasen [Wed, 27 Mar 2019 21:28:53 +0000 (17:28 -0400)]
file chooser: Stop setting a role
It does nothing.
Matthias Clasen [Wed, 27 Mar 2019 18:51:04 +0000 (18:51 +0000)]
Merge branch 'fixed-layout' into 'master'
Add GtkFixedLayout
See merge request GNOME/gtk!668
Alexander Larsson [Wed, 27 Mar 2019 18:45:17 +0000 (18:45 +0000)]
Merge branch 'wip/alexl/broadway6' into 'master'
broadway: Use css transforms
See merge request GNOME/gtk!673
Alexander Larsson [Wed, 27 Mar 2019 18:27:16 +0000 (19:27 +0100)]
broadway: Use css transforms
This allows generic transforms nodes to work.
Matthias Clasen [Wed, 27 Mar 2019 18:21:26 +0000 (14:21 -0400)]
migration guide: Improve warp-pointer entry
Mention platform APIs.
Matthias Clasen [Wed, 27 Mar 2019 18:12:01 +0000 (18:12 +0000)]
Merge branch 'pack-type' into 'master'
Drop some more child properties
See merge request GNOME/gtk!672
Matthias Clasen [Wed, 27 Mar 2019 17:52:47 +0000 (13:52 -0400)]
Mention pack-type in the migration guide
Matthias Clasen [Wed, 27 Mar 2019 17:20:18 +0000 (13:20 -0400)]
Convert all ui files
Run gtk4-builder-tool simplify --3to4 over all ui files.
Matthias Clasen [Wed, 27 Mar 2019 17:14:39 +0000 (13:14 -0400)]
builder-tool: Rewrite pack-type
Replace GtkActionBar::pack-type and GtHeaderBar::pack-type
with child types when going from 3 to 4.
Matthias Clasen [Wed, 27 Mar 2019 17:16:07 +0000 (13:16 -0400)]
action bar: Drop pack-type
Drop the pack-type child property. Allow ui
files to direct children by adding a child
type for it.
Matthias Clasen [Wed, 27 Mar 2019 17:16:49 +0000 (13:16 -0400)]
header bar: Drop pack-type
Drop the pack-type child property. Allow ui files
to direct children by adding a child type.
Matthias Clasen [Wed, 27 Mar 2019 17:35:38 +0000 (13:35 -0400)]
dialog: Stop using GtkHeaderBar::pack-type
We want to get rid of child properties.
Alexander Larsson [Wed, 27 Mar 2019 13:21:28 +0000 (14:21 +0100)]
broadway: Fix leftover dom modification not using display_commands
Matthias Clasen [Wed, 27 Mar 2019 06:18:36 +0000 (02:18 -0400)]
Migration guide: Updates
Matthias Clasen [Wed, 27 Mar 2019 05:55:06 +0000 (05:55 +0000)]
Merge branch 'entry-sizing' into 'master'
Entry sizing
Closes #1721
See merge request GNOME/gtk!670
Matthias Clasen [Wed, 27 Mar 2019 05:40:17 +0000 (01:40 -0400)]
text: Allow growing entries
Add a propagate-text-width property, which, when set,
makes the entry request a natural width that is just
enough to fit the content, within the limits given
by width-chars and max-width-chars.
Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1721
Matthias Clasen [Wed, 27 Mar 2019 04:22:32 +0000 (00:22 -0400)]
search entry: Fix sizing
Use the same sizing approach we use for GtkEntry:
ignore icons when measuring. This ensures that
search entries don't change size as icons come
and go.
Matthias Clasen [Wed, 27 Mar 2019 04:21:11 +0000 (00:21 -0400)]
password entry: Fix sizing
Use the same sizing approach we use for GtkEntry:
ignore icons when measuring. This ensures that
password entries don't change size as icons come
and go.
Matthias Clasen [Tue, 26 Mar 2019 23:14:48 +0000 (23:14 +0000)]
Merge branch 'get_caret_offset_negative_one' into 'master'
Return -1 for AtkText::get_caret_offset on failure
See merge request GNOME/gtk!666
Matthias Clasen [Tue, 26 Mar 2019 22:37:27 +0000 (22:37 +0000)]
Merge branch 'gdk-api-cleanups' into 'master'
Gdk api cleanups
See merge request GNOME/gtk!669
Matthias Clasen [Tue, 26 Mar 2019 00:44:37 +0000 (20:44 -0400)]
Rename gdk_device_get_surface_at_position_double
We can drop the double suffix now.
Matthias Clasen [Tue, 26 Mar 2019 00:39:08 +0000 (20:39 -0400)]
Drop gdk_device_get_surface_at_position
It is no longer used.
Matthias Clasen [Tue, 26 Mar 2019 00:37:13 +0000 (20:37 -0400)]
gtk: Stop using gtk_device_get_surface_at_position
We should always use the double variant of the api.
Matthias Clasen [Tue, 26 Mar 2019 00:36:45 +0000 (20:36 -0400)]
gdk: Stop using gdk_device_get_surface_at_position
We should always use the double variant.
Matthias Clasen [Tue, 26 Mar 2019 00:30:15 +0000 (20:30 -0400)]
Rename gdk_device_get_position_double
We can drop the double suffix now.
Matthias Clasen [Tue, 26 Mar 2019 00:28:08 +0000 (20:28 -0400)]
Drop gdk_device_get_position
It is no longer used.
Matthias Clasen [Tue, 26 Mar 2019 00:26:59 +0000 (20:26 -0400)]
gtk: Stop using gdk_device_get_position
We should always use the double variant of this api.
Matthias Clasen [Tue, 26 Mar 2019 00:26:34 +0000 (20:26 -0400)]
gdk: Stop using gdk_device_get_position
We should always use the double variant of this api.
Matthias Clasen [Mon, 25 Mar 2019 14:12:01 +0000 (10:12 -0400)]
Rename gdk_surface_get_device_position_double
Drop the _double suffix, now that the int version is gone.
Matthias Clasen [Mon, 25 Mar 2019 12:33:56 +0000 (08:33 -0400)]
Drop gdk_surface_get_device_position
Not used anymore.
Matthias Clasen [Mon, 25 Mar 2019 12:32:50 +0000 (08:32 -0400)]
gtk: Stop using gdk_surface_get_device_position
Use the double version directly.
Matthias Clasen [Mon, 25 Mar 2019 12:32:10 +0000 (08:32 -0400)]
gdk: Stop using gdk_surface_get_device_position
Use the double variant instead.
Matthias Clasen [Mon, 25 Mar 2019 02:09:30 +0000 (22:09 -0400)]
Remove GtkWindow::gravity
This was used to interpret the position passed
to gtk_window_move. Since that is gone, gravity
is no longer useful.
Matthias Clasen [Mon, 25 Mar 2019 01:50:51 +0000 (21:50 -0400)]
tests: Stop using gtk_window_set_gravity
This api is going away.
Matthias Clasen [Mon, 25 Mar 2019 01:46:30 +0000 (21:46 -0400)]
Drop gtk_window_move and gtk_window_get_position
These functions operate with global coordinates,
which are not available on Wayland.
Matthias Clasen [Mon, 25 Mar 2019 01:45:31 +0000 (21:45 -0400)]
treeview: Stop using gtk_window_move
It is going away. The search popup needs to be
redone using popovers.
Matthias Clasen [Mon, 25 Mar 2019 01:45:09 +0000 (21:45 -0400)]
file chooser: Stop using gtk_window_get_position
It is going away.
Matthias Clasen [Mon, 25 Mar 2019 01:44:31 +0000 (21:44 -0400)]
tests: Stop using gtk_window_move
It is going away.
Matthias Clasen [Tue, 26 Mar 2019 21:37:12 +0000 (17:37 -0400)]
a11y: Don't support changing widget size and position
This does not make sense.
Matthias Clasen [Sat, 23 Mar 2019 18:56:21 +0000 (14:56 -0400)]
Avoid root coordinates in begin_drag/move apis
Change the all the begin_drag and begin_move apis in
GdkSurface and GtkWindow to expect surface coordinates.
Update the x11 implementation to translate to root
coordinates where it matters. Wayland is ignoring the
coordinates anyway.